﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.Web.UI.HtmlControls;
using System.Threading;

public partial class _Default : System.Web.UI.Page
{
    
    protected void Page_Load(object sender, EventArgs e)
    {
        warning.Visible = false;
        if (!IsPostBack)
        {
            checkUserLife();
        }      
    }
    public void checkUserLife()
    {
        string module = null;
        module = Request.QueryString["action"];

        if (module == "cart_home")
        {
            defaultCart.Visible = true;
        }
        else if (module == "search")
        {
            search.Visible = true;
        }
        else if (module == "createacc")
        {
            defaultCreateAcc.Visible = true;
        }
        else if (module == "cartHistory")
        {
            defaulthistory.Visible = true;
        }
        else if (module == "lostpass")
        {
            defaultLostpass.Visible = true;
        }
        else if (module == "viewHistory")
        {
            DefaultView.Visible = true;

        }
        else if (module == "product" || module == "category")
        {
            defaultProduct.Visible = true;
        }
        else
        {
            hotproduct.Visible=true;
            defaultProduct.Visible = true;
        }
    }

    
}
